package com.nkym.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.nkym.pojo.dto.IdRequest;
import com.nkym.pojo.dto.interfaceInfo.InterfaceInfoAddRequest;

import com.nkym.pojo.dto.interfaceInfo.InterfaceInfoInvokeRequest;
import com.nkym.pojo.dto.interfaceInfo.InterfaceInfoQueryRequest;
import com.nkym.pojo.dto.interfaceInfo.InterfaceInfoUpdateRequest;
import com.nkym.pojo.entity.InterfaceInfo;
import com.nkym.pojo.vo.PageVo;

import javax.servlet.http.HttpServletRequest;

/**
* @author 19637
* @description 针对表【interface_info】的数据库操作Service
* @createDate 2023-04-18 20:51:59
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {

    void addInterfaceInfo(InterfaceInfoAddRequest infoAddRequest,HttpServletRequest request);

    PageVo<InterfaceInfo> paginationQuery(InterfaceInfoQueryRequest queryRequest);

    void online(IdRequest idRequest);
    void offline(IdRequest idRequest);

    String invoke(InterfaceInfoInvokeRequest invokeRequest, HttpServletRequest request);


    Integer getInterfaceInfoId(String method, String path);

    void updateInterfaceInfo(InterfaceInfoUpdateRequest infoUpdateRequest);

}
